package com.sinosoft.call;

import com.alibaba.fastjson.JSONObject;
import com.sinosoft.listener.AutoConfigListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@ComponentScan("com.sinosoft")
//组件扫描
@Configuration
//配置控制
@SpringBootApplication
//@EnableEurekaClient
public class IccCallServiceApplication {

    public static void main(String[] args) {
        //SpringApplication.run(IccCallServiceApplication.class, args);
//        try {
//            Thread.sleep(10000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        SpringApplication springApplication = new SpringApplication(IccCallServiceApplication.class);
        springApplication.addListeners(new AutoConfigListener());
        springApplication.setWebApplicationType(WebApplicationType.SERVLET);
        springApplication.run(args);

    }

}
